﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="notice_board.aspx.cs" Inherits="notice_board" %>
<%@ Register TagPrefix="header" TagName="header" Src="header.ascx" %>
<%@ Register TagPrefix="footer" TagName="footer" Src="footer.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
    <title>公告栏</title>
   <link href="css/css.css" rel="stylesheet" type="text/css" /><!--导入css样式--> 

</head>

<body  style="text-align:center ">
    <form id="form2" runat="server">
        <div id="total_div" align="center" style="width:1000px;">
           <header:header ID="header" runat="server"  /> 
                   
           <div id="main_div">
               <div id="content_div">
                    
                    <div style="width:799px; float:left; text-align:left; border-left-color:#CCCCCC; border-left-style:solid; border-left-width:1px;">
                        <div class="gg_back1">
                            <table style="width: 799px;" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td style="width: 799px;" valign="top">
                                        <div class="gridview_title">公告栏</div>
                                        <asp:GridView ID="GridView1" runat="server" AllowPaging="true" PageSize="10"
                                        AutoGenerateColumns="False" CssClass="datagrid" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging" 
                                         >
                                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                            <Columns>
                                                <asp:BoundField DataField="title" HeaderText="标题">
                                                <ItemStyle Width="15%" CssClass="dg_item"/>
                                                </asp:BoundField>
                                                <%--<asp:BoundField DataField="content" HeaderText="内容">
                                                <ItemStyle CssClass="dg_item" Width="40%" />
                                                </asp:BoundField>--%>
                                                <asp:BoundField DataField="addadminname" HeaderText="作者">
                                                <ItemStyle Width="10%" CssClass="dg_item" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="addtime" HeaderText="发布时间">
                                                <ItemStyle CssClass="dg_item" Width="15%" />
                                                </asp:BoundField>
                                                <asp:HyperLinkField DataNavigateUrlFields="noticeid" DataNavigateUrlFormatString="notice_detail.aspx?noticeid={0}"
                                                HeaderText="详细信息" Target="main" Text="详细信息">
                                                <ItemStyle CssClass="dg_item" Width="10%"/>
                                                </asp:HyperLinkField>
                                                <%--<asp:CommandField HeaderText="删除" ShowDeleteButton="True">
                                                <ItemStyle CssClass="dg_item" Width="10%" />
                                                </asp:CommandField>--%>
                                                
                                            </Columns>
                                            <SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True" />
                                            <PagerStyle CssClass="dg_page" />
                                            <HeaderStyle CssClass="dg_header"/>
                                            <AlternatingRowStyle CssClass="dg_alter" />
                                            <RowStyle BackColor="#ffffff" />
                                            <EditRowStyle BackColor="#2461BF" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                            <%--<div class="gg_margin" style="padding-bottom:15px;">
                                <asp:Button ID="Button11" CssClass="blueButtonCss2" OnClick="Button11_Click" runat="server" Text="添加公告" />&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="Button12" CssClass="blueButtonCss2" OnClick="Button12_Click"  runat="server" Text="草稿箱" />
                            </div>--%>  
                        
                        </div>
                        
                        
                   </div>
               </div>
           </div>
           
           <footer:footer ID="footer" runat="server" />
        
        </div>

    </form>
</body>
</html>

